package gjfshiyan2.demo;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author gjf
 * Created by gjf on 2020/4/10
 */

@ConfigurationProperties(prefix = "gjf.demo2")
public class CustomProperties {
    /**
     *自动配置类是否生效
     */
    private boolean enable;

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable){
        this.enable=enable;
    }
}
